//获取应用实例
var app = getApp();
Page({
  data: {
    baseUrl: app.baseUrl
  },
  onLoad: function (options) {
    wx.showShareMenu({
      withShareTicket: true,
      menus: ['shareAppMessage', 'shareTimeline']
    })
  },
  onTapEnter: function () {
    wx.navigateTo({
      url: '/pages/mapindex/mapindex',
    })
  },
  onShareAppMessage: function () {
    return {
      title: "中国革命纪念馆坐标",
      path: '/pages/index/index',
      imageUrl: '/statics/bg/share.png',
    }
  },
  onShareTimeline() {
    return {
      title: "中国革命纪念馆坐标",
      imageUrl: '/statics/bg/share.png',
    }
  }
})